<script>
export default {
    name: 'ChildVue',
    props: ['message'],
    inject: ['msg', 'money', "test"],
    mounted() {
        console.log(this.test)
        this.test("hello")
    }
}
</script>

<template>
    <h3>我是child组件 {{ message }}</h3>
    <h4>{{msg}}, {{ money }}</h4>
</template>

<style scoped>

</style>